package org.jeecg.modules.hc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.modules.hc.enums.HcMerchantSettlementTypeEnum;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * @Description: 商户结算
 * @Author: jeecg-boot
 * @Date: 2023-02-17
 * @Version: V1.0
 */
@Data
@TableName("hc_merchant_settlement")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "hc_merchant_settlement对象", description = "商户结算")
public class HcMerchantSettlement implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private java.lang.String id;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private java.lang.String createBy;
    /**
     * 创建日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "创建日期")
    private java.util.Date createTime;
    /**
     * 更新人
     */
    @ApiModelProperty(value = "更新人")
    private java.lang.String updateBy;
    /**
     * 更新日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private java.util.Date updateTime;
    /**
     * 类型
     */
    @Excel(name = "类型", width = 15)
    @ApiModelProperty(value = "类型")
    private HcMerchantSettlementTypeEnum type;
    /**
     * 门店ID
     */
    @Excel(name = "门店ID", width = 15)
    @ApiModelProperty(value = "门店ID")
    private java.lang.String merchantId;

    @TableField(exist = false)
    @ApiModelProperty(value = "门店名称")
    private java.lang.String merchantName;


    @TableField(exist = false)
    @ApiModelProperty(value = "商户登陆openId")
    private java.lang.String merchantOpenId;

    /**
     * 结算日期
     */
    @Excel(name = "结算日期", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "结算日期")
    private java.util.Date settlementDate;
    /**
     * 结算金额
     */
    @Excel(name = "结算金额", width = 15)
    @ApiModelProperty(value = "结算金额")
    private java.math.BigDecimal settlementAmount;
    /**
     * 变动备注
     */
    @Excel(name = "变动备注", width = 15)
    @ApiModelProperty(value = "变动备注")
    private java.lang.String changeRemarks;
    /**
     * 图片
     */
    @Excel(name = "图片", width = 15)
    @ApiModelProperty(value = "图片")
    private java.lang.String picture;

    /**
     * 商家批次单号
     */
    @Excel(name = "商家批次单号", width = 15)
    @ApiModelProperty(value = "商家批次单号")
    private java.lang.String outNo;

    /**
     * 是否周三自动结算
     */
    @Excel(name = "是否周三自动结算", width = 15)
    @ApiModelProperty(value = "是否周三自动结算")
    @TableField(exist = false)
    private java.lang.Boolean autoSettle;

    /**
     * 用户实名
     */
    @ApiModelProperty(value = "用户实名")
    @TableField(exist = false)
    private java.lang.String userName;

    /**
     * 自动转账查询次数(查询72次)
     */
    @ApiModelProperty(value = "自动转账查询次数(查询72次)")
    private java.lang.Integer callbackQueryTimes;

}
